package com.kedacom.demo.tuscany.rest;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.oasisopen.sca.annotation.Remotable;

@Remotable
public interface HelloworldRestService {

	@GET
	@Path("sayHello")
	@Produces(MediaType.TEXT_PLAIN)
	public String sayHello(@QueryParam("name") String name);

	@POST
	@Path("sayHi")
	@Produces(MediaType.TEXT_PLAIN)
	public String sayHi(@QueryParam("name") String name);

}
